]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionBase: Fix issue in lookupByURL()
authorAndrew Zaech <azaech021@gmail.com>
Wed, 9 Aug 2023 18:07:43 +0000 (18:07 +0000)
committerMarge Bot <marge-bot@gnome.org>
Thu, 10 Aug 2023 16:04:51 +0000 (16:04 +0000)
The lookupByUUID() implementations in the subtypes return null
when the lookup failed, not undefined.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2879>

js/extensions/sharedInternals.js

index 524ec398573a0df5b1720b78db972e589e3d595b..76f488b7f0cdda4a9b6156269579b026c9ad2ceb 100644 (file)
@@ -28,7 +28,7 @@ export class ExtensionBase {
 
             const dirName = GLib.path_get_basename(path);
             const extension = this.lookupByUUID(dirName);
-            if (extension !== undefined)
+            if (extension !== null)
                 return extension;
         } while (path !== '/');